import Vuex from 'vuex'
import Vue from 'vue'
import actions from './actions'
import mutations from './mutations'
import getters from './getters'

Vue.use(Vuex)

const createStore = () =>
  new Vuex.Store({
    state: {
      publicKey:
        'MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCRXYFYTGI9uVipfl9P5loLAWLRIQPpSznBc1ACIpCO/ptKYLXjzunWz2TyCj5OV1yjs9pEIcyOnxs6ESplsUOsEakf6wDgox6sU3A51mQmQlm6ALxtfguurZGOJ0Ksg/gL1q97YWTSMsH9R1slDV95nvMKsQAd4Yd/6i+2/ihaxQIDAQAB',
      sessionid: '',
      name: '',
      idCard: '',
      phone: '',
      productId: '',
      trueAmount: '',
      amount: '',
      period: '',
      payDate: '',
      payAmount: ''
    },
    getters,
    mutations,
    actions
  })

export default createStore
